package cn.client.data.remoteData.bean



// 正念资源
data class MindfulnessMedia(
    val id: Int,
    val mediaName: String,
    val mediaInfo: String,
    val mediaUrl: String,
    val imgUrl: String,
    val author: Int?,
    val gmtCreate: Long,
    val gmtModified: Long,
    val isPublic: Int?,
    val pageViews: Int?,
    val collect: Int?,
    val isCollect: Int?,
    val isEvaluate: Int?,   // 是否评分
)

// 正念团体
data class MindfulnessGroup(
    val id: Int,
    val founder: Int,
    val groupName: String,
    val groupInfo: String,
    val groupPwd: String?,
    val numLim: Int?,
    val gmtCreate: Long,
    val gmtModified: Long?
    )

// 创建正念团体的申请
data class BuildGroupApply(
    val founder: Int,  // 创建人id
    val groupName: String,
    val groupInfo: String,
    val numLim: Int?,
)

// 已加入的团体
data class JoinGroup(
    val id: Int,
    val founder: Int,
    val groupName: String,
    val groupInfo: String,
)

// 发起请求携带的参数
data class MindfulnessRequestWithUid(
    val mid: Int,
    val uid: Int
)

// 新增正念评分
data class InsertEvaluate(
    val mid: Int,      // 正念ID
    val uid: Int,      // 用户ID
    val score: Int,    // 分数 1-5分
    val info: String?   // 评分信息
)

// 查看正念评分
data class GetEvaluate(
    val id: Int,
    val mid: Int,      // 正念ID
    val uid: Int,      // 用户ID
    val score: Int,    // 分数 1-5分
    val info: String?   // 评分信息
)

// 正念评分列表的item（包含用户信息）
data class EvaluateItem(
    val id: Int,
    val mid: Int,      // 正念ID
    val uid: Int,      // 用户ID
    val userName: String,
    val avatar: String,
    val score: Int,    // 分数 1-5分
    val info: String?   // 评分信息
)

// 打卡
data class AddMindfulnessLogBody(
    val mid: Int,
    val uid: Int,
    val experience: String
)

// 打卡记录
data class MindfulnessLog(
    val id: Int,
    val mid: Int,
    val uid: Int,
    val experience: String,
    val gmtCreate: Long,
    val gmtModified: Long?
)